const state = {
  checkinRefresh: false,
  checkoutRefresh: false,
  rejectRefresh: false
}

const getters = {
  getCheckinRefresh(state) {
    return state.checkinRefresh
  },
	getCheckoutRefresh(state) {
	  return state.deliverfresh
	},
	getRejectRefresh(state) {
	  return state.rejectRefresh
	}
}

const mutations = {
  SET_CHECKINREFRESH(state, checkinRefresh) {
    state.checkinRefresh = checkinRefresh
  },
  SET_CHECKOUTREFRESH(state, checkoutRefresh) {
    state.checkoutRefresh= checkoutRefresh
  },
  SET_REJECTREFRESH(state,rejectRefresh) {
    state.rejectRefresh = rejectRefresh
  }
}

const actions = {
  setCheckinRefresh({
    commit
  }, checkinRefresh) {
    commit("SET_CHECKINREFRESH", checkinRefresh)
  },
  setCheckoutRefresh({
    commit
  }, CheckoutRefresh) {
    commit("SET_CHECKOUTREFRESH", CheckoutRefresh)
  },
  setRejectRefresh({
    commit
  }, rejectRefresh) {
    commit("SET_REJECTREFRESH", rejectRefresh)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
